<template lang="pug">
view.has-page-bgcolor.mod
  view.radius.bg.white
    view.mod.flex
      view 头像
      view.grow.avatar
        button.clear(@chooseavatar="methods._avatar" open-type="chooseAvatar")
          aimg(:src="''")
      view.arrow.right
    navigator.mod.flex.divider(url="/pages/my/profile/nickname")
      view 昵称
      view.grow.right 昵称
      view.arrow.right
    navigator.mod.flex.divider(url="/pages/my/profile/nickname")
      view 手机号码
      view.grow.right 13579842512
      view.arrow.right
</template>
<script setup>
import {reactive} from 'vue'
//import {home} from '/common/config/url.json'
//import {__get} from '/common/script/req.promise'
//import {_tip, _go} from '/common/script/tip'
//import {onLoad} from '@dcloudio/uni-app'

const data = reactive({

})
const methods = {
  _avatar(e){
    const {avatarUrl} = e.detail
    // __postImage(avatarUrl).then(res=>{
    //   const avatar = res.fullurl || res.url || res
    //   const post = {[pureData.keys.avatarKey]: avatar}
    //   __post(uri.update, post).then(res=>{
    //     User.data = post
    //     data.avatar = avatar
    //   })
    // })
  },
}

</script>
<style lang="scss" scoped>
.avatar{
  --aimg-width: 90rpx;
  --aimg-border-radius: 50%;
  --aimg-display: inline-block;
  button{
    text-align: right;
  }
}
.divider{
  --mod-padding-top: 35rpx;
  --divider-gap: var(--mod-padding-top);
}
</style>